<div class="bh-p-pj-index bh-padT10">
	<div class="bh-pj-content">
	<?php echo $this->renderPartial('application.views.partials.crumbs') ?>
	<div class="bh-p-pj-content-right bh-fl">
        	<!-- 搜索 -->
            <?php $this->widget('QuickSearch')?>
            <div class="bh-pj-conr-three bh-pj-border bh-mtop10">
            <!-- 旅游度假 -->
            	 <?php $this->widget('lib.ext.data.DataWidget',array(
						'model' => 'Travel',
						'criteria' => array(
							'order' => 'listing_time DESC',
        	 				'scopes' => 'listing',
							'limit' => 7,
						),
						'view' => 'application.views.partials.platform.travel.travel',
					))?>
            </div>
            <!-- 土特产 -->
            <?php $this->widget('lib.ext.data.DataWidget',array(
				'model' => 'NativeRecommend',
				'criteria' => array(
					'order' => 'sort DESC',
					'limit' => 6,
				),
				'view' => 'application.views.partials.platform.integral',
			))?>
        </div>
    	<div class="bh-p-pj-content-left bh-fr">
    	<!-- 首页轮播 -->
    		<?php $this->renderPartial('application.views.partials.platform.indexSlider')?>
            <div class="bh-pj-conl-one">
				<!--  景区   	-->
				<div class="bh-pj-conl-one-left bh-Border_1 bh-fl">
					<div class="bh-ly-jj-jingdian_h1">
						<span class="bh-fl">特价景点门票</span><span class="bh-ly-jj-tejiamen1 bh-ly-jj-jipiaocol1 bh-fr"><a href="<?php echo $this->createUrl('channel/scenicList');?>" target='<?php echo Yii::app()->option->get('scenic_list_target');?>'>更多>></a></span>
						<div class="bh-ly-jj-tejiamen bh-fr" id='trigger-scenic'>
						 <?php $this->widget('lib.ext.data.DataWidget',array(
								'model' => 'CityRecommend',
								'criteria' => array(
						 			'condition' => 'type = :type',
						 			'params' => array(
						 				':type' => CityRecommend::TYPE_INDEX_SCENIC
						 			),
									'order' => 'sort DESC',
									'limit' => 3,
								),
								'data' => array(
									'params' => array('service'=>'scenic'),
									'trigger' => 'trigger-scenic',
									'content' => 'content-scenic'
								),
								'view' => 'application.views.partials.public.city_recommend',
							))?>
						</div>
					</div>
					<div class="bh-ly-jj-jingqvbgh" id='content-scenic'></div>
					<?php /*$this->widget('lib.ext.data.DataWidget',array(
						'model' => 'CompanyScenic',
						'criteria' => array(
							'order' => 'id DESC',
							'limit' => 2,
						),
						'view' => 'application.views.partials.platform.scenic.scenic',
					))*/?>
				</div>
                <!-- 飞机票等票务  -->
                <div class="bh-pj-conl-one-right bh-fr bh-Border_1">
					<div class="bh-ly-jj-jingdian_h1">
						<span class="bh-fl">特价机票</span>
						<span class="bh-ly-jj-tejiamen1 bh-ly-jj-jipiaocol1 bh-fr"><a href="javascript:void(0)" id='link-switch-city'>北京出发</a></span>
					</div>
					<div class='hide' id='ticket-from-cites'>
						<ul class='ul-ticket-from-cites'>
							<?php foreach (CityRecommend::typeCity(CityRecommend::TYPE_INDEX_TICKET,4) as $key=>$one):?>
							<li id='ticket-city-<?php echo $key?>' url='<?php echo Yii::app()->createUrl('partialView/get',array('service'=>'tejiajipiao','city'=>$one->city))?>'><?php echo $one->cityName?>出发</li>
							<?php endforeach;?>
						</ul>
					</div>
					<div id='tejiajipiao' class="bh-pj-feiji"></div>
				<?php /*$this->widget('lib.ext.data.DataWidget',array(
					'model' => 'Ticket',
					'criteria' => array(
						'order' => 'is_recommend DESC',
						'limit' => 4,
					),
					'view' => 'application.views.partials.platform.ticket.ticket',
				))*/?>
					
			</div>
				<script>
					$('#link-switch-city').html($('#ticket-city-0').html());
					$('#link-switch-city').click(function() {
						$linker = $(this);
						$dlg = $.dialog({
							title: '请选择',
							follow: this,
							offset: {top: -10, left: 5},
							width: '50px',
							content: document.getElementById('ticket-from-cites'),
							padding: 0,
							drag: false
						});
						$dlg.dom.content.find('.ul-ticket-from-cites > li').click(function() {
							$linker.html(this.innerHTML);
							$dlg.close();
							return true;
						});
					});
					$.tabable({
						triggers: '#ticket-from-cites li',
						contents: '#tejiajipiao',
						hoverClass: 'current',
						clearHistoryOnload: true
					});
				</script>
                <div class="bh-clear"></div>
						<!-- 中部广告位 -->
						<?php $this->widget('lib.ext.data.DataWidget',array(
							'model' => 'Ad',
							'criteria' => array(
								'condition' => 'type = :type',
								'params' => array(
									':type' => Ad::TYPE_M_INDEX_C
								),
								'limit' => '1'
							),
							'data' => array(
								'width' => 714,
								'height' => 67,
							),
							'view' => 'application.views.partials.ad.one'
						))?>
					<div class="bh-space"></div>
            </div>
            <div class="bh-pj-conl-two bh-pj-border">
            	<div class="bh-ly-jj-jingdian_h1">
                    <span class="bh-ly-jj-tejiamen1 bh-ly-jj-jipiaocol1 bh-fr"><a href="<?php echo $this->createUrl('channel/hotelList');?>" target='<?php echo Yii::app()->option->get('hotel_list_target');?>'>所有城市</a></span>
					<div class="bh-ly-jj-tejiamen2 bh-fr" id='trigger-hotel'>
						<?php $this->widget('lib.ext.data.DataWidget',array(
								'model' => 'CityRecommend',
								'criteria' => array(
						 			'condition' => 'type = :type',
						 			'params' => array(
						 				':type' => CityRecommend::TYPE_INDEX_HOTEL
						 			),
									'order' => 'sort DESC',
									'limit' => 8,
								),
								'data' => array(
									'params' => array('service'=>'hotel'),
									'trigger' => 'trigger-hotel',
									'content' => 'content-hotel'
								),
								'view' => 'application.views.partials.public.city_recommend',
							))?>
					</div>
                    <span class="bh-fl">特价酒店</span>
                </div>
                <div class="bh-pj-conl-two-left">
                <!-- 特价酒店 -->
                <div style="height:136px" class="bh-pj-two-left bh-padB10 bh-fl" id='content-hotel'></div>
                    <?php /*$this->widget('lib.ext.data.DataWidget',array(
						'model' => 'CompanyHotel',
						'criteria' => array(
							'order' => 'id DESC',
							'limit' => 6,
						),
						'view' => 'application.views.partials.platform.hotel.hotel',
					))*/?>
                    <div class="bh-clear"></div>
                </div>
            </div>
			<!-- 线路资询 -->
			<div class="bh-ly-jj-xiangou bh-mtop10">
				<div class="bh-ly-jj-jingdian_h1">
					<div class="bh-ly-jj-tejiamen3 bh-fr" id='trigger-news' style='position: relative; width:440px;'>
                    		<?php $this->widget('lib.ext.data.DataWidget',array(
								'model' => 'CategoryInformation',
								'criteria' => array(
						 			'condition' => 'layer = 2',
									'order' => 'id ASC',
									'limit' => 4,
								),
								'data' => array(
									'params' => array('service'=>'news'),
									'trigger' => 'trigger-news',
									'content' => 'content-news'
								),
								'view' => 'application.views.partials.public.category',
							))?>
							<div  class='bh-fr' style='position:absolute; top:1px; right: 5px'><a  href="<?php echo Yii::app()->createUrl('article/list');?>">更多>></a></div>
							<div class='bh-clear'></div>
					</div>
					<span class="bh-fl">资讯</span>
				</div>
				<ul class="bh-ly-jj-xianluzixun content-news" id='content-news'></ul>
				<?php /*$this->widget('lib.ext.data.DataWidget',array(
						'model' => 'News',
						'criteria' => array(
							'limit' => '7'
						),
						'view' => 'application.views.partials.platform.limit',
					))*/?>
			</div>
			<div class="bh-space"></div>
			<!-- ***************推荐供应商*************** -->
			<div class="bh-pj-conl-one-bottom">
            	<?php $this->widget('lib.ext.data.DataWidget',array(
						'model' => 'WorkerRecommend',
						'criteria' => array(
            				'with' => array(
								'worker.web',
							),
							'condition' => 'web.status = "ST_PASSED"',
							'order' => 'sort DESC',
							'limit' => 10,
						),
						'view' => 'application.views.partials.platform.group',
					));?>
	            <div class="bh-pjone-bottom-right bh-fr">
	             <?php $this->renderPartial('application.views.partials.platform.toolbox');?>
	             </div>
	             <div class="bh-clear"></div>	
             </div>
        </div>
        <div class="bh-clear"></div>
		
    </div>
    <!-- 友情链接 -->
    <div class="bh-youqinghref_bg bh-mlt10">
    <?php $this->widget('lib.ext.data.DataWidget',array(
    	'model' => 'FriendLink',
    	'view' => 'application.views.partials.aircraft.friendlink',
    ))?>
    </div>
     <div class="bh-clear"></div>
</div>
<div class="bh-space"></div>